#ifndef SCRIPTENVIRONMENT_H
#define SCRIPTENVIRONMENT_H

#include <QObject>

class ScriptEnvironment : public QObject
{
Q_OBJECT
public:

    enum ScriptEnvironmentMode{
        minimal,
        full
    };

    ScriptEnvironment(ScriptEnvironmentMode mode, QObject *parent = 0);
    ~ScriptEnvironment();

    void print(const QString& out);
signals:
    void output(const QString& str);

public slots:
    bool exec(const QString& script);

private:
    QScriptEngine* engine;
};

#endif // SCRIPTENVIRONMENT_H
